{
  "properties" : { },
  "id" : "663397ef4a9941dea37a9c68e34de83a",
  "script" : null,
  "groupId" : "0ae13df90a5c41a7930f46ab7d7936cb",
  "name" : "关联",
  "createTime" : 1727070881892,
  "updateTime" : 1726305687565,
  "lock" : "1",
  "createBy" : "ndmp",
  "updateBy" : "ndmp",
  "path" : "saveBatch",
  "method" : "POST",
  "parameters" : [ ],
  "options" : [ ],
  "requestBody" : "{\r\n    \"columnIdList\": [\r\n        \"1656552380880183298\",\r\n        \"1656552805196947457\"\r\n    ],\r\n    \"modelId\": \"1735550202917445634\"\r\n}",
  "headers" : [ ],
  "paths" : [ ],
  "responseBody" : "{\n    \"status\": 200,\n    \"message\": \"success\",\n    \"data\": true\n}",
  "description" : "",
  "requestBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  },
  "responseBodyDefinition" : {
    "name" : "",
    "value" : { },
    "description" : "",
    "required" : false,
    "dataType" : "String",
    "type" : "",
    "defaultValue" : "",
    "validateType" : "",
    "error" : "",
    "expression" : "",
    "children" : [ ]
  }
}
================================
// 过滤已经关联的属性
existIds = db.table("ndmp_dynamic_model_relation")
    .where()
    .in("column_id", body.columnIdList)
    .eq("model_id",body.modelId)
    .select()
    .map(r->{
        return r.columnId::string
    })
for (columnId in body.columnIdList.filter(r->!existIds.contains(r))) {
    db.table('ndmp_dynamic_model_relation').primary('id').insert({
        id: IdUtil.getSnowflakeNextId(),
        model_id: body.modelId,
        column_id: columnId
    })
}
return true